#a guessing game where a number 1 through 100 is generated and the user gets 3 tries to guess
#Fine imports
import random
#debug show number toggle
debug = 0
##########################################
#I have terrible luck but I like things slightly wierd in random land
start = 1
end = 100
end = input("What number do you want to end on?")
kitten = input("Put some random numbers here:")
alpaca = 846248792
dog = random.random()
random.seed(alpaca + dog + kitten)
#ok so with how this executes on this compy, if I only use alpaca seed I generated with my brain and a keypad  produces 69
#redundant weird random bs because north american based f2p gacha games hate me
#Three randos are random numbers and lando calrissian chooses one of them as the random number.
rando = random.randint(start,end)
rando2 = random.randint(start,end)
rando3 = random.randint(start,end)
lando = [rando, rando2, rando3]
calrissian = random.choice(lando)
lies = random.choice(lando)
#not sure if int is necessary on rando3 is rando
#checking if rando3 is rando is to avoid having all three be the same number
#this way lies will always be a different number. probably a better way to do that
if rando3 == int(rando):
	rando3 = random.randint(start,end)
while lies == int(calrissian):
	lies = random.choice(lando)
#################
#yes, I'm well aware this might be useless
################



tries = 3
intro = "WELCOME! I have right here a number. You have three tries to guess it!"
FirstGuess = "Tell me what you think the number is?"
retry = 'Hmm... \n*checks notes* \nThat number is wrong. \nTry again!', 'You go \nSorry, I read that wrong. \nYou didn\'t get it right. \nTry again.', 'Aww. Wrong number.\nTry again!'
lasttry = 'One more time!\nYou can do it!', 'IT IS THE FINAL ROUND OF THE MATCH!\nFIGHT!', 'This is your last chance!\nWhat is your guess?'
victory = 'You did it!', 'Congratulations!', 'You won!', 'Victory!'
gameover = 'You tried your best! \nBut.... this is a guessing game so you really couldn\'t do much', 'Sorry, all those guesses are wrong :(', 'All were wrong, try again later!'
liesA = "Hmm I wonder if it is "
liesB = "A random person walks up and says "
liesC = "I'll tell you what number it isn't: "
liestable = [liesA, liesB,liesC,]
answers = []
#print rando
if debug == 1:
	print start, "to ", end
	print "A mysterious force tells you: " , rando
	print "The brother of a mysterious force tells you: " , rando2
	print "The roommate of a mysterious force tells you: " , rando3
	print "A dog barks ", calrissian, " times"
	print "A sphinx tell you", lies, "lies"
	print "!!!!!!!!!!!!!  \n\n\n\n !!!!!!!!!!!!!!!!!!!!!"
	#print retry[1]
	#print random.choice(liestable), lies
#Intro and request input number
#I feel like I hacked together the multi answers stuff... but it seems to work
print intro
print "Tell me a number between ", start, " and ", end,"!","\n"
answer = input(FirstGuess)
answers.append(answer)
if debug == 1:
	print calrissian
	print answer
if len(answers) < 3 and answer != calrissian:
	print random.choice(retry)
	answer = input("\nUmmmmm...:")
	answers.append(answer)
if len(answers) < 3 and answer != calrissian:
	
	print random.choice(liestable), lies
	print random.choice(lasttry)
	answer = input("My answer is:")
	answers.append(answer)
	
	if debug == 1:
		print len(answers)	
if len(answers) == 3 and answer != calrissian:
	print "Your answers were ", answers
	print random.choice(gameover)
	if answer == lies:
		print "You know that last one was obviously wrong, right?"
	print "The number was: ", calrissian

elif answer == calrissian:
	print random.choice(victory)
	if debug ==1:
		print answers
	print "It really was ", calrissian, "!"
else:
	print "you shouldn't be here"
#


